﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using WeiTap.Validator;
using System.Reflection;
namespace ConsoleValidator
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                UserEntity user = new UserEntity();
                user.Name = "David";
                ValidatorOptions.GetDisplayName(typeof(UserEntity).GetMember("Name").FirstOrDefault());
            }
            catch (Exception ex)
            {

                throw;
            }
            
        }
    }
    public class UserEntity {
        [DisplayName("用户姓名")]
        public string Name { get; set; }
    }

}
